package ooday01;

public class StringDemo {
    public static void main(String[] args) {
        String str = new String("HelloWorld");
        String s = "Hello"+new String("World");
        String str1="HelloWorld";
        String str2=str1;
        String  a = str;
        System.out.println(a.equals(str));
        System.out.println(str2==str1);
        System.out.println();
    }
}
